package com.expand.learn.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description 事件类，这个用来描述事件本身一些属性，一般继承ApplicationEvent
 * @date 2020/3/2
 */
public class UserRegisterEvent extends ApplicationEvent {

    private String name;
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public UserRegisterEvent(Object source) {
        super(source);
    }

    public UserRegisterEvent(Object source, String name) {
        super(source);
        this.name = name;
    }
}
